package com.sysmanage.permissions.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/** 
  * @ClassName: Jobs 
  * @Description: 职位实体类
  * @author XXXX@163.com
  * @date 2011-9-26 上午10:02:29 
  *  
  */
@Entity
@Table(name = "C_JOBS")
public class Jobs implements Serializable {

	private Integer id;
	private String jobName;
	private Integer deptId;
	private Integer status;
	

	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name="JOB_ID",nullable=false,unique=true)
	public Integer getId() {
		return id;
	}
	@Column(name="JOB_NAME")
	public String getJobName() {
		return jobName;
	}
	@Column(name="DEPT_ID")
	public Integer getDeptId() {
		return deptId;
	}

	@Column(name="status")
	public Integer getStatus() {
		return status;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public void setJobName(String jobName) {
		this.jobName = jobName;
	}	
	public void setDeptId(Integer deptId) {
		this.deptId = deptId;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public String toString()
	{
		return "职位[id:"+this.getId()+",name:"+this.getJobName()+"]";
	}
}
